﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VISS.API.Users;
using NCT.Framework;

namespace VISS.Web.Frontend.Modules.General {

    public partial class MostFavoriteControl : System.Web.UI.UserControl {

        protected List<UserSrhResEnt> Profiles { get; set; }
        public bool Display { get; set; }
        public EUserGender Gender { get; set; }

        protected void Page_Load(object sender, EventArgs e) {
            if (Display) {
                if (Gender == EUserGender.Male) {
                    Profiles = StructureMapFactory.GetInstance<IUserGeneralProfile>().GetMostFavoriteRandom(EUserGender.Female);
                }
                else {
                    Profiles = StructureMapFactory.GetInstance<IUserGeneralProfile>().GetMostFavoriteRandom(EUserGender.Male);
                }   
            }
        }
    }
}
